<div class="u-photo">
    <div class="photo-area">
        <a href="http://${configs['domains.www']}/settings/avatar?redir=http://${configs['domains.job']}/resume/index">
            <img src="${(resumeHelper.basic().getPhotoUrl('m'))!""}">
        </a>
        <a href="http://${configs['domains.www']}/settings/avatar?redir=http://${configs['domains.job']}/resume/index"
           class="change-btn" style="display:none;"><#if user.avatar==''>上传<#else>更换</#if>头像</a></a>

        <div class="photo-mask" id="photo-mask" <#if resume.isVisible("photo")> style="display: none"</#if>></div>
    </div>
    <div class="showphoto">
        <input type="checkbox" id="photo_checkbox" <#if resume.isVisible("photo")> checked="checked" </#if>><label
            for="photo_checkbox"
            class="checkbox">在简历中显示</label>
    </div>
</div>

<script type="text/javascript">
    var has_photo = <#if resumeHelper.basic()?? && resumeHelper.basic().photo?? && resumeHelper.basic().photo==''>0<#else>1</#if>;
    $('#photo_checkbox').click(function () {
        $.ajax({
            url:'/resume/visibility',
            type:'post',
            success:function (r) {
                if (r == 0) {
                    var o = document.getElementById("photo-mask").style.display;
                    if (o == 'none') {
                        $('#photo-mask').show();
                    } else {
                        $('#photo-mask').hide();
                    }
                }
            }
        });
    });
</script>

<table>
    <colgroup>
        <col width="99">
        <col width="*">
    </colgroup>
    <tbody>
    <tr>
        <th>姓名:</th>
        <td>
        ${(resumeHelper.basic().name)!""}<#if (resumeHelper.basic().gender)??>(${(dictMap.DICT_GENDER.map.get(resumeHelper.basic().gender).name)!""})</#if>
        </td>
    </tr>

    <tr>
        <th>现居地:</th>
        <td>
        <#if dictMap.DICT_CITY.map.get(resumeHelper.basic().livecity)??>
                    <#assign livecity=dictMap.DICT_CITY.map.get(resumeHelper.basic().livecity) />
                    <#if livecity.parentId!=0>
        ${(dictMap.DICT_CITY.map.get(livecity.parentId).name)!''}
        </#if>
                    ${(livecity.name)!'......'}
                </#if>
        </td>
    </tr>
    <tr>
        <th>户口地:</th>
        <td>
        <#if (dictMap.DICT_CITY.map.get(resumeHelper.basic().domicile))??>
                <#assign domicile=dictMap.DICT_CITY.map.get(resumeHelper.basic().domicile) />
                <#if domicile.parentId!=0>
        ${(dictMap.DICT_CITY.map.get(domicile.parentId).name)!''}
        </#if>
                ${(domicile.name)!'......'}
            </#if>
        </td>
    </tr>
    <tr>
        <th>出生日期:</th>
        <td>${(resumeHelper.basic().birthday?string("yyyy-MM-dd"))!}</td>
    </tr>
    <#if (resumeHelper.basic().workStartYear)??>
    <tr>
        <th>工作经验:</th>
        <#assign t = (currentYear)?c?number?int -resumeHelper.basic().workStartYear>
        <#if t lte 0>
            <#assign d = '1年以下'>
        <#elseif t gt 7>
            <#assign d = '8年以上'>
        <#else>
            <#assign d = t +'年'>
        </#if>
        <td>${d}</td>
    </tr>
    </#if>
    <#if (resumeHelper.basic().height)??>
    <tr>
        <th>身高:</th>
        <td>${(resumeHelper.basic().height)!""}cm</td>
    </tr>
    </#if>
    <#if (resumeHelper.basic().weight)??>
    <tr>
        <th>体重:</th>
        <td>${(resumeHelper.basic().weight)!""}kg</td>
    </tr>
    </#if>
    <#if (resumeHelper.basic().nation)?? && resumeHelper.basic().nation != ''>
    <tr>
        <th>民族:</th>
        <td>${(resumeHelper.basic().nation)!""}</td>
    </tr>
    </#if>
    <#if (resumeHelper.basic().idCardNum)?? && resumeHelper.basic().idCardNum!=''>
    <tr>
        <th>身份证号:</th>
        <td>${resumeHelper.basic().idCardNum}</td>
    </tr>
    </#if>
    <#if dictMap.DICT_POLITICAL.map.get(resumeHelper.basic().political)??>
    <tr>
        <th>政治面貌:</th>
        <td>${dictMap.DICT_POLITICAL.map.get(resumeHelper.basic().political).name}</td>
    </tr>
    </#if>
    <#if dictMap.DICT_MARRIAGE.map.get(resumeHelper.basic().marriage)??>
    <tr>
        <th>婚姻状况:</th>
        <td>${dictMap.DICT_MARRIAGE.map.get(resumeHelper.basic().marriage).name}</td>
    </tr>
    </#if>
    <#if dictMap.DICT_START_WORKING.map.get(resumeHelper.basic().startWorking)??>
    <tr>
        <th>到岗时间:</th>
        <td>${dictMap.DICT_START_WORKING.map.get(resumeHelper.basic().startWorking).name}</td>
    </tr>
    </#if>
    </tbody>
</table>

